import service from '../utils/axios';

export default function axiosLink(url) {
  return new Promise((resolve, reject) => {
    service
      .request({
        url,
        method: 'get',
      })
      .then(ok => {
        resolve(ok);
      })
      .catch(err => {
        reject(err);
      });
  });
}
